/// id : 20082
/// username : "18702782793"
/// phone : "18702782793"
/// credit : "4650.00"
/// name : null
/// gift_credit : "0.00"
/// freeze_amount : "391.33"
/// company_name : "还回家"
/// isSetPassword : 1
/// unionid : "123"
/// parent_id : 0
/// email : null
/// coupon_count : 0
/// meal_card_count : 0
/// integral : 0
/// last_flow : "-55.69"
/// is_enable_shop : "1"
/// is_share_bullets : 1

class MyInfoBean {
  int _id;
  String _username="";
  String _phone="";
  String _credit="";
  dynamic _name;
  String _giftCredit;
  String _freezeAmount="";
  String _companyName="";
  int _isSetPassword;
  String _unionid;
  int _parentId=0;
  dynamic _email;
  int _couponCount;
  int _mealCardCount;
  int _integral;
  String _lastFlow;
  String _isEnableShop;
  int _isShareBullets;

  int get id => _id;
  String get username => _username;
  String get phone => _phone;
  String get credit => _credit;
  dynamic get name => _name;
  String get giftCredit => _giftCredit;
  String get freezeAmount => _freezeAmount;
  String get companyName => _companyName;
  int get isSetPassword => _isSetPassword;
  String get unionid => _unionid;
  int get parentId => _parentId;
  dynamic get email => _email;
  int get couponCount => _couponCount;
  int get mealCardCount => _mealCardCount;
  int get integral => _integral;
  String get lastFlow => _lastFlow;
  String get isEnableShop => _isEnableShop;
  int get isShareBullets => _isShareBullets;

  MyInfoBean({
      int id, 
      String username, 
      String phone, 
      String credit, 
      dynamic name, 
      String giftCredit, 
      String freezeAmount, 
      String companyName, 
      int isSetPassword, 
      String unionid, 
      int parentId, 
      dynamic email, 
      int couponCount, 
      int mealCardCount, 
      int integral, 
      String lastFlow, 
      String isEnableShop, 
      int isShareBullets}){
    _id = id;
    _username = username;
    _phone = phone;
    _credit = credit;
    _name = name;
    _giftCredit = giftCredit;
    _freezeAmount = freezeAmount;
    _companyName = companyName;
    _isSetPassword = isSetPassword;
    _unionid = unionid;
    _parentId = parentId;
    _email = email;
    _couponCount = couponCount;
    _mealCardCount = mealCardCount;
    _integral = integral;
    _lastFlow = lastFlow;
    _isEnableShop = isEnableShop;
    _isShareBullets = isShareBullets;
}

  MyInfoBean.fromJson(dynamic json) {
    _id = json["id"];
    _username = json["username"];
    _phone = json["phone"];
    _credit = json["credit"];
    _name = json["name"];
    _giftCredit = json["gift_credit"];
    _freezeAmount = json["freeze_amount"];
    _companyName = json["company_name"];
    _isSetPassword = json["isSetPassword"];
    _unionid = json["unionid"];
    _parentId = json["parent_id"];
    _email = json["email"];
    _couponCount = json["coupon_count"];
    _mealCardCount = json["meal_card_count"];
    _integral = json["integral"];
    _lastFlow = json["last_flow"];
    _isEnableShop = json["is_enable_shop"];
    _isShareBullets = json["is_share_bullets"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["id"] = _id;
    map["username"] = _username;
    map["phone"] = _phone;
    map["credit"] = _credit;
    map["name"] = _name;
    map["gift_credit"] = _giftCredit;
    map["freeze_amount"] = _freezeAmount;
    map["company_name"] = _companyName;
    map["isSetPassword"] = _isSetPassword;
    map["unionid"] = _unionid;
    map["parent_id"] = _parentId;
    map["email"] = _email;
    map["coupon_count"] = _couponCount;
    map["meal_card_count"] = _mealCardCount;
    map["integral"] = _integral;
    map["last_flow"] = _lastFlow;
    map["is_enable_shop"] = _isEnableShop;
    map["is_share_bullets"] = _isShareBullets;
    return map;
  }

}